package com.atguigu.yygh.order.service;

import com.atguigu.yygh.model.order.OrderInfo;
import com.atguigu.yygh.vo.order.OrderQueryVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

public interface OrderInfoService extends IService<OrderInfo> {

    /**
     * 订单详情
     * @param id
     * @return
     */
    OrderInfo getOrderInfo(Long id);

    /**
     * 创建平台端的订单
     * @param scheduleId  排班id
     * @param patientId   就诊人的id
     * @return  订单的id
     */
    Long saveOrder(String scheduleId,Long patientId);

    //订单分页列表
    IPage<OrderInfo> selectPage(Page<OrderInfo> pageParam, OrderQueryVo orderQueryVo);

}
